<?xml version="1.0" encoding="UTF-8"?>
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	xmlns:pe="http://primefaces.org/ui"
	template="/WEB-INF/templates/default.xhtml"
>

	<f:metadata>
		<f:viewParam
			name="tradeId"
			value="#{tradeHome.id}"
		></f:viewParam>		
		<f:viewParam
			name="moduleName"
			value="评审选取结果审核"
		></f:viewParam>
	   	<f:event listener="#{tradeHome.initConversation()}" type="preRenderView"></f:event>		
	</f:metadata>
	<ui:define name="head">
		<style type="text/css">
			.removeButton {
				float: right;
				margin-right: 20px;
			}
			
			.limitUnit {
				margin-top: 5px;
			}
			.closeBtn {
				float: right;
				background: url(#{resource['images/close2.png']}) 0 0 no-repeat;
				height: 22px;
				width: 22px;
				margin: 5px 12px 0 0;
			}
			.closeBtn:hover {
				background: url(#{resource['images/close2_hover.png']}) 0 0 no-repeat;
			}
		</style>
	</ui:define>
	<ui:define name="content">

		<h:form >
			<p:panel
				id="panel"
				header="[#{tradeHome.instance.supplier.cnname}]报名材料"
				style="margin-bottom:10px;"
			>
				<p:messages id="messages" closable="true">
		       		<p:autoUpdate />
		       	</p:messages>
				
				<p:panelGrid columns="3">
					
					<p:outputLabel for="offerScore" value="报价" />
					<p:outputPanel style="text-align: right;">
						<h:outputText value="#{tradeHome.instance.tradeReportData.offer}">
							<f:convertNumber maxFractionDigits="0" groupingUsed="true" />
						</h:outputText>
					</p:outputPanel>
					<p:inputText id="offerScore" 
							  value="#{tradeHome.instance.tradeReportData.offerScore}"
						   required="true" 
					autocomplete="off" />
						   
					<p:outputLabel for="socialSecurityScore" value="社保" />
					<p:outputPanel></p:outputPanel>
					<p:inputText id="socialSecurityScore" 
							  value="#{tradeHome.instance.tradeReportData.socialSecurityScore}"
						   required="true" 
					   autocomplete="off" />
						   
					<p:outputLabel for="effectScore" value="业绩" />
					<p:outputPanel></p:outputPanel>
					<p:inputText id="effectScore" 
							  value="#{tradeHome.instance.tradeReportData.effectScore}"
						   required="true" 
					   autocomplete="off"  />
						   
					<p:outputLabel for="personnelCertScore" value="人员证书" />
					<p:outputPanel></p:outputPanel>
					<p:inputText id="personnelCertScore" 
							  value="#{tradeHome.instance.tradeReportData.personnelCertScore}"
						   required="true" 
					   autocomplete="off"  />
						   
					<p:outputLabel for="otherScore" value="其他" />
					<p:outputPanel></p:outputPanel>
					<p:inputText id="otherScore" 
							  value="#{tradeHome.instance.tradeReportData.otherScore}"
						   required="true" 
					   autocomplete="off"  />
					
				</p:panelGrid>
				
				<p:commandButton value="提交" action="#{tradeHome.assessBestChooseTrade()}" ajax="false"></p:commandButton>
				<p:button value="报名材料打包下载" href="/rest/trade/archive/#{tradeHome.instance.id}"></p:button>
				<p:button value="取消" outcome="BestChooseAudit.xhtml">
					<f:param name="bulletinId" value="#{tradeHome.instance.bulletin.id}"></f:param>					
				</p:button>
			</p:panel>	
		</h:form>		

	</ui:define>
</ui:composition>
